<template>
  <div>
    <!-- 二级路由 -->
    <!--index的 二级路由出口 -->
    <transition
    enter-active-class="animate__animated animate__bounceInLeft">
      <router-view class="con"></router-view>
    </transition>
    <!-- 底部导航 -->
   <footer>
    <router-link active-class="active" to="/index/home">首页</router-link>
    <router-link active-class="active" to="/index/cate">分类</router-link>
    <router-link active-class="active" to="/index/shop">购物车</router-link>
    <router-link active-class="active" to="/index/mine">我的</router-link>
   </footer>
  </div>
  
</template>

<script>
export default {

}
</script>

<style scoped>
.con{
  padding-bottom: 0.8rem;
}
footer{
  width: 100vw;
  height: 0.8rem;
  border-top: 0.01rem solid #666;
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  background: #fff;
}
footer a{
  flex: 1;
  text-align: center;
  line-height: 0.8rem;
}
.active{
  color: #ff4400;
}
</style>